<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QTouchEvent.TouchPoint Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QTouchEvent.TouchPoint Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The TouchPoint class provides information about a touch point in
a <a href="qtouchevent.html">QTouchEvent</a>. <a href="#details">More...</a></p>

<h3>Methods</h3><ul><li><div class="fn" />int <b><a href="qtouchevent-touchpoint.html#id">id</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtouchevent-touchpoint.html#isPrimary">isPrimary</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#lastPos">lastPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#pos">pos</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qtouchevent-touchpoint.html#pressure">pressure</a></b> (<i>self</i>)</li><li><div class="fn" />QRectF <b><a href="qtouchevent-touchpoint.html#rect">rect</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#scenePos">scenePos</a></b> (<i>self</i>)</li><li><div class="fn" />QRectF <b><a href="qtouchevent-touchpoint.html#sceneRect">sceneRect</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#screenPos">screenPos</a></b> (<i>self</i>)</li><li><div class="fn" />QRectF <b><a href="qtouchevent-touchpoint.html#screenRect">screenRect</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#startPos">startPos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.TouchPointState <b><a href="qtouchevent-touchpoint.html#state">state</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The TouchPoint class provides information about a touch point in
a <a href="qtouchevent.html">QTouchEvent</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="id" />int TouchPoint.id (<i>self</i>)</h3><p>Returns the id number of this touch point.</p>
<p>Id numbers are globally sequential, starting at zero, meaning
the first touch point in the application has id 0, the second has
id 1, and so on.</p>


<h3 class="fn"><a name="isPrimary" />bool TouchPoint.isPrimary (<i>self</i>)</h3><p>Returns true if this touch point is the primary touch point. The
primary touch point is the point for which the windowing system
generates mouse events.</p>


<h3 class="fn"><a name="lastNormalizedPos" /><a href="qpointf.html">QPointF</a> TouchPoint.lastNormalizedPos (<i>self</i>)</h3><p>Returns the normalized position of this touch point from the
previous touch event.</p>
<p>The coordinates are normalized to the size of the touch device,
i.e. (0,0) is the top-left corner and (1,1) is the bottom-right
corner.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>() and
<a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a>().</p>


<h3 class="fn"><a name="lastPos" /><a href="qpointf.html">QPointF</a> TouchPoint.lastPos (<i>self</i>)</h3><p>Returns the position of this touch point from the previous touch
event, relative to the widget or <a href="qgraphicsitem.html">QGraphicsItem</a> that received the event.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#pos">pos</a>() and <a href="qtouchevent-touchpoint.html#startPos">startPos</a>().</p>


<h3 class="fn"><a name="lastScenePos" /><a href="qpointf.html">QPointF</a> TouchPoint.lastScenePos (<i>self</i>)</h3><p>Returns the scene position of this touch point from the previous
touch event.</p>
<p>The scene position is the position in <a href="qgraphicsscene.html">QGraphicsScene</a> coordinates if the
<a href="qtouchevent.html">QTouchEvent</a> is handled by a
QGraphicsItem.touchEvent() reimplementation, and identical to the
screen position for widgets.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>() and <a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a>().</p>


<h3 class="fn"><a name="lastScreenPos" /><a href="qpointf.html">QPointF</a> TouchPoint.lastScreenPos (<i>self</i>)</h3><p>Returns the screen position of this touch point from the
previous touch event.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>() and
<a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a>().</p>


<h3 class="fn"><a name="normalizedPos" /><a href="qpointf.html">QPointF</a> TouchPoint.normalizedPos (<i>self</i>)</h3><p>Returns the normalized position of this touch point.</p>
<p>The coordinates are normalized to the size of the touch device,
i.e. (0,0) is the top-left corner and (1,1) is the bottom-right
corner.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a>(),
<a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a>(),
and <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>


<h3 class="fn"><a name="pos" /><a href="qpointf.html">QPointF</a> TouchPoint.pos (<i>self</i>)</h3><p>Returns the position of this touch point, relative to the widget
or <a href="qgraphicsitem.html">QGraphicsItem</a> that received the
event.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#startPos">startPos</a>(), <a href="qtouchevent-touchpoint.html#lastPos">lastPos</a>(), <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>(), <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>(), and <a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>().</p>


<h3 class="fn"><a name="pressure" />float TouchPoint.pressure (<i>self</i>)</h3><p>Returns the pressure of this touch point. The return value is in
the range 0.0 to 1.0.</p>


<h3 class="fn"><a name="rect" /><a href="qrectf.html">QRectF</a> TouchPoint.rect (<i>self</i>)</h3><p>Returns the rect for this touch point, relative to the widget or
<a href="qgraphicsitem.html">QGraphicsItem</a> that received the
event. The rect is centered around the point returned by <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>
<p><b>Note:</b> This function returns an empty rect if the device
does not report touch point sizes.</p>


<h3 class="fn"><a name="scenePos" /><a href="qpointf.html">QPointF</a> TouchPoint.scenePos (<i>self</i>)</h3><p>Returns the scene position of this touch point.</p>
<p>The scene position is the position in <a href="qgraphicsscene.html">QGraphicsScene</a> coordinates if the
<a href="qtouchevent.html">QTouchEvent</a> is handled by a
QGraphicsItem.touchEvent() reimplementation, and identical to the
screen position for widgets.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a>(),
<a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a>(), and
<a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>


<h3 class="fn"><a name="sceneRect" /><a href="qrectf.html">QRectF</a> TouchPoint.sceneRect (<i>self</i>)</h3><p>Returns the rect for this touch point in scene coordinates.</p>
<p><b>Note:</b> This function returns an empty rect if the device
does not report touch point sizes.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>() and <a href="qtouchevent-touchpoint.html#rect">rect</a>().</p>


<h3 class="fn"><a name="screenPos" /><a href="qpointf.html">QPointF</a> TouchPoint.screenPos (<i>self</i>)</h3><p>Returns the screen position of this touch point.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a>(),
<a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a>(),
and <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>


<h3 class="fn"><a name="screenRect" /><a href="qrectf.html">QRectF</a> TouchPoint.screenRect (<i>self</i>)</h3><p>Returns the rect for this touch point in screen coordinates.</p>
<p><b>Note:</b> This function returns an empty rect if the device
does not report touch point sizes.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>() and
<a href="qtouchevent-touchpoint.html#rect">rect</a>().</p>


<h3 class="fn"><a name="startNormalizedPos" /><a href="qpointf.html">QPointF</a> TouchPoint.startNormalizedPos (<i>self</i>)</h3><p>Returns the normalized starting position of this touch
point.</p>
<p>The coordinates are normalized to the size of the touch device,
i.e. (0,0) is the top-left corner and (1,1) is the bottom-right
corner.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>() and
<a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a>().</p>


<h3 class="fn"><a name="startPos" /><a href="qpointf.html">QPointF</a> TouchPoint.startPos (<i>self</i>)</h3><p>Returns the starting position of this touch point, relative to
the widget or <a href="qgraphicsitem.html">QGraphicsItem</a> that
received the event.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#pos">pos</a>() and <a href="qtouchevent-touchpoint.html#lastPos">lastPos</a>().</p>


<h3 class="fn"><a name="startScenePos" /><a href="qpointf.html">QPointF</a> TouchPoint.startScenePos (<i>self</i>)</h3><p>Returns the starting scene position of this touch point.</p>
<p>The scene position is the position in <a href="qgraphicsscene.html">QGraphicsScene</a> coordinates if the
<a href="qtouchevent.html">QTouchEvent</a> is handled by a
QGraphicsItem.touchEvent() reimplementation, and identical to the
screen position for widgets.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>() and <a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a>().</p>


<h3 class="fn"><a name="startScreenPos" /><a href="qpointf.html">QPointF</a> TouchPoint.startScreenPos (<i>self</i>)</h3><p>Returns the starting screen position of this touch point.</p>
<p><b>See also</b> <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>() and
<a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a>().</p>


<h3 class="fn"><a name="state" /><a href="qt.html#TouchPointState-enum">Qt.TouchPointState</a> TouchPoint.state (<i>self</i>)</h3><p>Returns the current state of this touch point.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.9.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2011</td><td align="right" width="25%">Qt&#160;4.8.0</td></tr></table></div></address></body></html>